#include "LinkedList.h"

void test01()
{
	// 3 2 1 1 2 3 4
	SListNode* s = NULL;
	SListPushBack(&s, 1);
	SListPushBack(&s, 2);
	SListPushBack(&s, 3);
	SListPushBack(&s, 4);

	SListPushFront(&s, 5);
	SListPushFront(&s, 2);
	SListPushFront(&s, 3);

	SListPopBack(&s);
	SListPopBack(&s);
	

	SListPopFront(&s);
	SListPopFront(&s);

	
	SListEraseAfter(s);
	

	/*SListNode *t = SListFind(s, 4);
	if(t)
		printf("%d\n", t->data);*/

	SListDestroy(&s);

	SListPrint(s);
	

}
int main()
{
	test01();
	system("pause");
	return 0;
}